# BEGIN cPanel-generated php ini directives, do not edit
<IfModule php8_module>
   php_flag display_errors Off
   php_value max_execution_time 30000
   php_value max_input_time 6000
   php_value max_input_vars 1000
   php_value memory_limit 1024M
   php_value post_max_size 1024M
   php_value session.gc_maxlifetime 1440
   php_value session.save_path "/var/cpanel/php/sessions/ea-php82"
   php_value upload_max_filesize 1024M
   php_flag zlib.output_compression Off
</IfModule>
<IfModule lsapi_module>
   php_flag display_errors Off
   php_value max_execution_time 30000
   php_value max_input_time 6000
   php_value max_input_vars 1000
   php_value memory_limit 1024M
   php_value post_max_size 1024M
   php_value session.gc_maxlifetime 1440
   php_value session.save_path "/var/cpanel/php/sessions/ea-php82"
   php_value upload_max_filesize 1024M
   php_flag zlib.output_compression Off
</IfModule>
# END cPanel-generated php ini directives, do not edit

# ------------------------------------------------------------------------------
# CUSTOM SECURITY & CLEAN URLS
# ------------------------------------------------------------------------------

# 1. Disable directory listing and MultiViews
Options -Indexes -MultiViews

# 2. Block direct web access to database dumps, CSVs, archives, logs, and config files
<FilesMatch "\.(sql|csv|zip|bak|tar|gz|tgz|log|env|ini|sh)$">
    Require all denied
</FilesMatch>

<FilesMatch "^(db|dataManagement|captchaManagement|zuppies_config|config|attend_config|registration_config|functions_reference|getGuppies)\.php$">
    Require all denied
</FilesMatch>

# 3. Clean URLs & Force HTTPS
RewriteEngine On
RewriteBase /

RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^([^\.]+)$ $1.php [NC,L,QSA]

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php82” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php82 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
